# -*- coding: utf-8 -*-
# @Time : 2024/3/11 11:09
# @Author : ZH
# @File : 2129.py
# @Software: PyCharm
class Solution(object):
    def capitalizeTitle(self, title):
        """
        :type title: str
        :rtype: str
        """
        return ' '.join([i[0].upper() + i[1:].lower() if len(i) >=3 else i.lower() for i in title.split(' ')])

